/** 
  * @author Ji Ye Choi <cgycgy@naver.com>
  * @version 1.9
  * @since 2010-11-02
  */ 

public class OCP_Main {
	/**
	 * @param ar
	 */
	public static void main(String[] ar) {
		Shape[] obj = new Shape[3];
		obj[0] = new Rectangle(2, 10);
		obj[1] = new Circle(3);
		obj[2] = new Triangle(3, 10);

		AreaCalculator ac = new AreaCalculator();
		int temp = ac.Area(obj);
		System.out.println("Rectangle&Circle&Triangle : " + temp);
	}
}
